package com.roy.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller("LoginContrller")
@RequestMapping("/login")
public class LoginController {
	
	@RequestMapping(value="/check.do",method={RequestMethod.POST})
	public String checkLogin(HttpServletRequest req,Model model){
		model.addAttribute("user",req.getParameter("user"));
		model.addAttribute("password", req.getParameter("password"));
		return "login/login";
	}
}
